<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Ohne_Titel_1</title>
</head>

<body>


<div id="myDiv"> </div>

<div style=" width:100px; height:100px; background-color:blue" class="div1" id="div1"></div>










<ol start="1" type="I"><li>Element 1</li><li>Element 2</li><li>Element 3</li></ol>






<a id="" href="javascript:removeElement()"><img style="width:15px; height:15px" src="X.jpg"></a>

<script type="text/javascript">

function removeElement() {

   
   var element = document.getElementById("div1");
     element.parentNode.removeChild(element);

  alert ("Gelöscht");

}

</script>











</body>







</html>
